<!-- PAGE CONTENT WRAPPER -->
<div class="page-content-wrap">

    <div class="row">
        <div class="col-md-12">
            <!--end 查询条件-->

            <!-- START TABLE HOVER ROWS -->
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><strong>{{'查询结果' | dyLanguage}}</strong></h3>
                </div>
                <div class="panel-body table-responsive">
                    <p style="float: left;">{{'本次查询共查询到' | dyLanguage}}{{pagination.length}}{{'条记录。' | dyLanguage}}</p>
                    <cm-pagination ng-model="pagination" ng-show="pagination.length > 0"></cm-pagination>
                    <table class="table table-hover">
                        <thead>
                        <tr>
                            <th>{{'内容' | dyLanguage}}</th>
                            <th>{{'任务' | dyLanguage}}</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr style="word-wrap:break-word;word-break: break-all;" ng-repeat="taskMessage in taskMessageResults.datas">
                            <td>
                                <ul>
                                    <li>{{'用户' | dyLanguage}}：{{taskMessage.user.nickName}}</li>
                                    <li>{{'状态' | dyLanguage}}：{{taskMessage.taskStatus}}</li>
                                    <li>{{'内容' | dyLanguage}}：{{taskMessage.content}}</li>
                                    <li>{{'附件' | dyLanguage}}：<a href="javascript:void(0)" ng-show="taskMessage.file" ng-click="download(taskMessage)">{{taskMessage.file}}</a></li>
                                    <li>{{'回答时间' | dyLanguage}}：{{taskMessage.createDate.toDateTime()}}</li>
                                    <li>
                                        <a href="javascript:void(0)" ng-click="approve(taskMessage)">{{'通过' | dyLanguage}}</a>
                                        &nbsp;|&nbsp;
                                        <a href="javascript:void(0)" ng-click="reject(taskMessage)">{{'驳回' | dyLanguage}}</a>
                                    </li>

                                </ul>
                            </td>
                            <td>
                                <ul>
                                    <li>{{'标题' | dyLanguage}}: {{taskMessage.taskSubject}}</li>
                                    <li>{{'内容' | dyLanguage}}: {{taskMessage.taskContent}}</li>
                                </ul>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <cm-pagination ng-model="pagination" ng-show="pagination.length > 0"></cm-pagination>
                </div>
            </div>
            <!-- END TABLE HOVER ROWS -->

        </div>
    </div>

</div>
<!-- END PAGE CONTENT WRAPPER -->
<ui-view name="map-child"></ui-view>